﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Master/MasterPage.master" AutoEventWireup="false" CodeFile="EditSectionProfile.aspx.vb" Inherits="UCMain_Section_Profile" %>

<%@ Register assembly="Brilliant.Presentation.WebControls" namespace="Brilliant.Presentation.WebControls" tagprefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
     <table width:100% style="width: 100%">
        <tr>
            <td colspan="5" style="text-align: center" class="bgTable">Section profile</td>
        </tr>
        <tr>
            <td class="lblNormal" colspan="5">
            <asp:Image ID="img" runat="server" Visible="False" />
            <asp:Label ID="lblerror" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="lblNormal" colspan="5" style="text-align: left">Section&nbsp;
                <asp:DropDownList ID="ddlSection" runat="server" AutoPostBack="True" CssClass="txtNormal">
                    <asp:ListItem Value="0">-- ทั้งหมด --</asp:ListItem>
                    <asp:ListItem>AFC</asp:ListItem>
                    <asp:ListItem>BES</asp:ListItem>
                    <asp:ListItem>CIV</asp:ListItem>
                    <asp:ListItem>COM</asp:ListItem>
                    <asp:ListItem>DWS</asp:ListItem>
                    <asp:ListItem>ENGINEER</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="lblNormal" colspan="5" style="text-align: left">&nbsp;&nbsp;</td>
        </tr>
        <tr>
            <td class="lblNormal" colspan="5" style="text-align: left">
                <asp:Button ID="btnAdd0" runat="server" CssClass="txtNormal" PostBackUrl="~/UCMain/Signup.aspx" Text="Add" Width="60px" />
            </td>
        </tr>
        <tr>
            <td class="lblNormal" colspan="5" style="text-align: left">
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White" BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4" Width="100%" CssClass="txtNormal" EmptyDataText="Data Not Found">
                    <Columns>
                        <asp:BoundField DataField="ID_PICOP" HeaderText="Picop No." />
                        <asp:TemplateField HeaderText="Name">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("lname") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Bind("FIRSTNAME") %>'></asp:Label>
                                &nbsp;<asp:Label ID="Label2" runat="server" Text='<%# Bind("LASTNAME") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="Section" HeaderText="Section" />
                        <asp:BoundField DataField="tel" HeaderText="Phone" />
                        <asp:BoundField DataField="sStatus" HeaderText="Status" />
                        <asp:TemplateField HeaderText="statusid" Visible="False">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("status") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lblstatusid" runat="server" Text='<%# Bind("status") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="ID_USER" HeaderText="Status" />
                        <asp:TemplateField HeaderText="Command">
                            <ItemTemplate>
                                <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/img/edit_button.gif" CommandArgument='<%# bind("ID_USER") %>' CommandName="bedit" />
                                |
                                <asp:ImageButton ID="imgBH" runat="server" CommandArgument='<%# bind("ID_USER") %>' CommandName="bhold" ImageUrl="~/img/user-01.png" OnClientClick="return confirm('Are you want to HOLD this user ?');" />
                                &nbsp;|<asp:ImageButton ID="imgBD" runat="server" CommandArgument='<%# bind("ID_USER") %>' CommandName="bdelete" ImageUrl="~/img/icon_delete.gif" OnClientClick="return confirm('Are you sure you want to DELETE this user ?');" />
                                &nbsp;
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                    </Columns>
                    <EmptyDataRowStyle ForeColor="Red" HorizontalAlign="Center" />
                    <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
                    <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
                    <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
                    <RowStyle BackColor="White" ForeColor="#003399" />
                    <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                    <SortedAscendingCellStyle BackColor="#EDF6F6" />
                    <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
                    <SortedDescendingCellStyle BackColor="#D6DFDF" />
                    <SortedDescendingHeaderStyle BackColor="#002876" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td class="auto-style3" colspan="5">
                
        <tr>
            <td>
                <asp:Button ID="btnAdd" runat="server" CssClass="txtNormal" PostBackUrl="~/UCMain/Signup.aspx" Text="Add" Width="60px" />
            </td>
        </tr>
      

            </td>
        </tr>
        <tr>
            <td class="auto-style3" style="height: 19px"></td>
            <td class="auto-style2" style="width: 30%; height: 19px;"></td>
            <td style="width: 15%; height: 19px;"></td>
            <td style="width: 20%; height: 19px;"></td>
            <td style="width: 20%; height: 19px;"></td>
        </tr>
    </table>
</asp:Content>

